package cn.demoncat.util.mysql.entity;

/**
 * Mysql.InnoDB锁等待
 *
 * SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
 *
 * @author 延晓磊
 * @since 2020年10月09日
 */
public class InnodbLockWait {

    // 请求的锁ID
    private String reqLockId;
    // 请求的事务ID
    private String reqTrxId;
    // 阻塞的锁ID
    private String blockLockId;
    // 阻塞的事务ID
    private String blockTrxId;

    public InnodbLockWait(String reqLockId, String reqTrxId, String blockLockId, String blockTrxId) {
        this.reqLockId = reqLockId;
        this.reqTrxId = reqTrxId;
        this.blockLockId = blockLockId;
        this.blockTrxId = blockTrxId;
    }

    public InnodbLockWait() {
        super();
    }

    public String getReqLockId() {
        return reqLockId;
    }

    public void setReqLockId(String reqLockId) {
        this.reqLockId = reqLockId;
    }

    public String getReqTrxId() {
        return reqTrxId;
    }

    public void setReqTrxId(String reqTrxId) {
        this.reqTrxId = reqTrxId;
    }

    public String getBlockLockId() {
        return blockLockId;
    }

    public void setBlockLockId(String blockLockId) {
        this.blockLockId = blockLockId;
    }

    public String getBlockTrxId() {
        return blockTrxId;
    }

    public void setBlockTrxId(String blockTrxId) {
        this.blockTrxId = blockTrxId;
    }
}
